import React from "react";
import ReactDOM from "react-dom/client";
import "./index.scss";
import App from "./App";
import { RouterProvider } from "react-router-dom";
import { Provider } from "react-redux";
import router from "./router";
import storePersistor from "@/store";
import { PersistGate } from 'redux-persist/integration/react';
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <Provider store={storePersistor.store}>
    <PersistGate loading={null} persistor={storePersistor.persistor}>
      <RouterProvider router={router} />
      </PersistGate>
    </Provider>
  </React.StrictMode>
);
